package com.xz.knowledgeDuplication.pattern.visitor;

/**
 * 主人(具体访问者角色)
 *
 * @author 召
 * @date 2022-03-30 21:39:56
 */
public class Owner implements Person{
    @Override
    public void feed(Dog dog) {
        System.out.println("主人喂食狗");
    }

    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂食猫");
    }
}
